import os

def create_pyx_files(source_dir):
    for root, dirs, files in os.walk(source_dir):
        for file in files:
            if file.endswith('.py'):
                pyx_file = file.replace('.py', '.pyx')
                pyx_path = os.path.join(root, pyx_file)
                py_path = os.path.join(root, file)
                with open(py_path, 'r') as f_read:
                    code = f_read.read()
                with open(pyx_path, 'w') as f_write:
                    f_write.write(code)
                print(f"Created {pyx_path}")

create_pyx_files('calc_manager/')